# -*- coding: utf-8 –*-
import datetime

from mongoengine import StringField, DateTimeField, Document, EmailField


class Feedback(Document):
    meta = {
        'collection': 'vacation_feedback',
    }

    content = StringField(verbose_name=u'内容', required=True)
    email = EmailField(verbose_name=u'邮件', max_length=100, required=True)
    date_added = DateTimeField(verbose_name=u'创建时间',
                               default=datetime.datetime.utcnow)

